-- GENERATED SPELL FOR [Omgorn the Lost] --


function spell0_8201(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_8201', 583, 1)
end

function spell1_8201(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8201', 5328, 1)
end

function Sorts_8201(pUnit, Event)
local choix_sorts_8201 = math.random(0, 1)
if choix_sorts_8201 == 0 then
pUnit:RegisterEvent('spell0_8201', 1, 1)
end
if choix_sorts_8201 == 1 then
pUnit:RegisterEvent('spell1_8201', 1, 1)
end
end

function mob8201_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8201', math.random(1500, 3000), 1)
end

function mob8201_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8201_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8201_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8201, 1, 'mob8201_Action')
RegisterUnitEvent(8201, 2, 'mob8201_Leave')
RegisterUnitEvent(8201, 3, 'mob8201_Kill')
RegisterUnitEvent(8201, 4, 'mob8201_Die')
